import service from './index.js'



/////sky/oauth2/api/v1/visits/view/getPlatformVisits
export const slxhapisystemcategorygetArticleTreeList=query=>{
	
	
	return service({
	    url: '/slxh/api/system/category/getArticleTreeList',
	    method: 'post',
		data:query
	});
}
////111
export const slxhapisystemcategoryaddOrEditArticleCategory=query=>{
	
	
	
	return service({
	    url: '/slxh/api/system/category/addOrEditArticleCategory',
	    method: 'post',
		data:query
	});
}


//////http://192.168.53.182:8787/sky/oauth2/api/v1/user/view/pageUserInfo
// export const  skyoauth2apiv1userviewpageUserInfo = query => {
//     return service({
//         url: '/sky/oauth2/api/v1/user/view/pageUserInfo',
//         method: 'post',
// 		data:query
//     });
// };

///////sky/oauth2/api/v1/role/save/addRoleButton
/////批量添加角色按钮222
export const  slxhapisystemcategorydelCategory = query => {
    return service({
        url: '/slxh/api/system/category/delCategory',
        method: 'post',
		params:query
    });
};



//////slxh/api/system/articleinfo/getArticleList
export const  slxhapisystemarticleinfogetArticleList = query => {
    return service({
        url: '/slxh/api/system/articleinfo/getArticleList',
        method: 'post',
		data:query
    });
};

////slxh/api/system/articleinfo/addOrEditArticleInfo
export const  slxhapisystemarticleinfoaddOrEditArticleInfo = query => {
    return service({
        url: '/slxh/api/system/articleinfo/addOrEditArticleInfo',
        method: 'post',
		data:query
    });
};


export const  slxhapisystemarticleinfodelArticleInfo = query => {
    return service({
        url: '/slxh/api/system/articleinfo/delArticleInfo',
        method: 'post',
		params:query
    });
};



















export const  slxhapisystemarticleinforeadArticleDetail = query => {
    return service({
        url: '/slxh/api/system/articleinfo/readArticleDetail',
        method: 'post',
		params:query
    });
};

export const  slxhapisystemarticleinforeadArticleDetailByCategory = query => {
    return service({
        url: '/slxh/api/system/articleinfo/readArticleDetailByCategory',
        method: 'post',
		params:query
    });
};



///asset/api/apply/common/getCategoryList
//【资产国标大类】列表查询
export const  slxhapisystemdictgetDict = query => {
    return service({
        url: '/slxh/api/system/dict/getDict',
        method: 'post',
		params:query
    });
};




//、、、、、、http://192.168.53.182:8787/sky/oauth2/api/v1/dept/view/listGztDeptTree
//查询所有部门树形结构33333
export const  slxhapisystemdictaddDict = query => {
    return service({
        url: '/slxh/api/system/dict/addDict',
        method: 'post',
		data:query
    });
};


//asset/api/system/user/getDeptUserListTree
//查询所有部门树形结构
export const  slxhapisystemdicteditDict = query => {
    return service({
        url: '/slxh/api/system/dict/editDict',
        method: 'post',
		data:query
    });
};

///asset/api/apply/common/addAssetCategory
//【资产国标大类】新增/编辑资产国标大类

export const  slxhapisystemdictfrozenDict = query => {
    return service({
        url: '/slxh/api/system/dict/frozenDict',
        method: 'post',
		params:query,
		data:query
    });
};

//【资产国标大类】删除
export const  slxhapisystemarticleinfostatisticsYearInfo = query => {
    return service({
        url: '/slxh/api/system/articleinfo/statisticsYearInfo',
        method: 'post',
		params:query
    });
};


//查询菜单列表
export const  slxhapisystemarticleinfogetYearHolidayInfo = query => {
    return service({
        url: '/slxh/api/system/articleinfo/getYearHolidayInfo',
        method: 'post',
		data:query,
		params:query
    });
};

//增加或修改菜单
///asset/api/system/menu/addOrUpdateMenu

export const  assetapisystemmenuaddOrUpdateMenu = query => {
    return service({
        url: '/asset/api/system/menu/addOrUpdateMenu',
        method: 'post',
		data:query
    });
};

///asset/api/system/menu/delMenu
export const  assetapisystemmenudelMenu = query => {
    return service({
        url: '/asset/api/system/menu/delMenu',
        method: 'post',
		params:query
    });
};
///asset/api/system/notice/getNoticeList列表查询
export const  assetapisystemnoticegetNoticeList = query => {
    return service({
        url: '/asset/api/system/notice/getNoticeList',
        method: 'post',
		data:query
    });
};

///asset/api/system/notice/addOrUpdateNotice

export const  assetapisystemnoticeaddOrUpdateNotice = query => {
    return service({
        url: '/asset/api/system/notice/addOrUpdateNotice',
        method: 'post',
		data:query
    });
};


//asset/api/system/dict/getDict

export const  assetapisystemdictgetDict = query => {
    return service({
        url: '/asset/api/system/dict/getDict',
        method: 'post',
		params:query
    });
};


export const  assetapisystemdictaddDict = query => {
    return service({
        url: '/asset/api/system/dict/addDict',
        method: 'post',
		data:query
    });
};

////asset/api/system/dict/editdict

export const  assetapisystemdicteditdict = query => {
    return service({
        url: '/asset/api/system/dict/editDict',
        method: 'post',
		data:query
    });
};

export const  assetapisystemdictfrozenDict = query => {
    return service({
        url: '/asset/api/system/dict/frozenDict',
        method: 'post',
		params:query
    });
};




///asset/api/system/user/getToDoItemPersonal

export const  assetapisystemusergetToDoItemPersonal = query => {
    return service({
        url: '/asset/api/system/user/getToDoItemPersonal',
        method: 'get',
		params:query
    });
};


///asset/api/system/menu/getMenuRoleDetail查询菜单权限

export const  assetapisystemmenugetMenuRoleDetail = query => {
    return service({
        url: '/asset/api/system/menu/getMenuRoleDetail',
        method: 'post',
		params:query
    });
};


///asset/api/purchase/plan/getPurchasePlanList
//列表查询采购计划

export const  assetapipurchaseplangetPurchasePlanList = query => {
    return service({
        url: '/asset/api/purchase/plan/getPurchasePlanList',
        method: 'post',
		data:query
    });
};


///asset/api/purchase/plan/addPurchasePlan
export const  assetapipurchaseplanaddPurchasePlan = query => {
    return service({
        url: '/asset/api/purchase/plan/addPurchasePlan',
        method: 'post',
		data:query
    });
};

///asset/api/purchase/plan/editPurchasePlan
//

export const  assetapipurchaseplaneditPurchasePlan = query => {
    return service({
        url: '/asset/api/purchase/plan/editPurchasePlan',
        method: 'post',
		data:query
    });
};


///asset/api/purchase/plan/importPurchasePlan
//excel导入采购计划
export const  assetapipurchaseplanimportPurchasePlan = query => {
    return service({
        url: '/asset/api/purchase/plan/importPurchasePlan',
        method: 'post',
		params:query
    });
};


//////asset/api/apply/common/getApplyList
//记录列表 采购记录

export const  assetapiapplycommongetApplyList = query => {
    return service({
        url: '/asset/api/apply/common/getApplyList',
        method: 'post',
		data:query,
		params:query
    });
};


///asset/api/apply/purchase/addOrSubPurchaseApply

export const  assetapiapplypurchaseaddOrSubPurchaseApply = query => {
    return service({
        url: '/asset/api/apply/purchase/addOrSubPurchaseApply',
        method: 'post',
		data:query,
		params:{
			type:query.type
		}
    });
};


export const  assetapiapplycommondelOrRevokeApply = query => {
    return service({
        url: '/asset/api/apply/common/delOrRevokeApply',
        method: 'post',
		params:query
    });
};


///asset/api/apply/purchase/getPurchaseApplyDetail

export const  assetapiapplypurchasegetPurchaseApplyDetail = query => {
    return service({
        url: '/asset/api/apply/purchase/getPurchaseApplyDetail',
        method: 'post',
		params:query
    });
};

export const  assetapisystemuserupdateUserRole = query => {
    return service({
        url: '/asset/api/system/user/updateUserRole',
        method: 'post',
		params:query
    });
};


export const  assetapiapplycommonassetApplyApproving = query => {
    return service({
        url: '/asset/api/apply/common/assetApplyApproving',
        method: 'post',
		data:query
    });
};



///////asset/api/info/manage/delAsset
export const  assetapiinfomanagedelAsset = query => {
    return service({
        url: '/asset/api/info/manage/delAsset',
        method: 'post',
		params:query
    });
};

//////asset/api/apply/purchase/getPurchaseApplyAccept


export const  assetapiapplypurchasegetPurchaseApplyAccept = query => {
    return service({
        url: '/asset/api/apply/purchase/getPurchaseApplyAccept',
        method: 'post',
		params:query
    });
};



//////asset/api/apply/common/showWorkFlowImage


export const  assetapiapplycommonshowWorkFlowImage = query => {
    return service({
        url: '/asset/api/apply/common/showWorkFlowImage',
        method: 'post',
		responseType: 'blob',
		params:query
    });
};


////asset/api/apply/common/getApproveProcessDetail
export const  assetapiapplycommongetApproveProcessDetail = query => {
    return service({
        url: '/asset/api/apply/common/getApproveProcessDetail',
        method: 'post',
		
		params:query
    });
};


///asset/api/apply/common/getCategoryListTree

export const  assetapiapplycommongetCategoryListTree = query => {
    return service({
        url: '/asset/api/apply/common/getCategoryListTree',
        method: 'post',
		params:query
    });
};


////asset/api/system/file/previewPdfFile

export const  assetapisystemfilepreviewPdfFile = query => {
    return service({
        url: '/asset/api/system/file/previewPdfFile',
        method: 'get',
		responseType: 'blob',
		params:query
    });
};



///asset/api/purchase/plan/exportPurchaseList


export const  assetapipurchaseplanexportPurchaseList = query => {
    return service({
        url: '/asset/api/purchase/plan/exportPurchaseList',
        method: 'post',
		responseType: 'blob',
		params:query
    });
};

//、、、/asset/api/info/manage/exportAssetInfo
export const  assetapiinfomanageexportAssetInfo = query => {
    return service({
        url: '/asset/api/info/manage/exportAssetInfo',
        method: 'get',
		responseType: 'blob',
		params:query,
		data:query
    });
};


//////asset/api/apply/dispose/exportScarpAssetInfo

export const  assetapiapplydisposeexportScarpAssetInfo = query => {
    return service({
        url: 'asset/api/apply/dispose/exportScarpAssetInfo',
        method: 'get',
		responseType: 'blob',
		params:query,
		data:query
    });
};



///asset/api/purchase/plan/getBudgetLog

export const  assetapipurchaseplangetBudgetLog = query => {
    return service({
        url: '/asset/api/purchase/plan/getBudgetLog',
        method: 'post',
		
		params:query
    });
};


///asset/api/purchase/plan/changePlanBudget

export const  assetapipurchaseplanchangePlanBudget = query => {
    return service({
        url: '/asset/api/purchase/plan/changePlanBudget',
        method: 'post',
		
		data:query
    });
};


//////asset/api/apply/accept/addOrSubPurchaseApply
export const  assetapiapplyacceptaddOrSubPurchaseApply = query => {
    return service({
        url: '/asset/api/apply/accept/addOrSubPurchaseApply',
        method: 'post',
		
		data:query,
		params:{
			type:query.type
		}
    });
};


//////asset/api/apply/accept/getAssetApplyDetail

export const  assetapiapplyacceptgetAssetApplyDetail = query => {
    return service({
        url: '/asset/api/apply/accept/getAssetApplyDetail',
        method: 'post',
		params:query
    });
};


/////////asset/api/apply/change/getPersonAssetList
export const  assetapiapplychangegetPersonAssetList = query => {
    return service({
        url: '/asset/api/apply/change/getPersonAssetList',
        method: 'post',
		params:query
    });
};

//asset/api/info/manage/editAssetInfoBatch/

export const  assetapiinfomanageeditAssetInfoBatch = query => {
    return service({
        url: '/asset/api/info/manage/editAssetInfoBatch/',
        method: 'post',
		data:query
    });
};
//////asset/api/apply/common/submitpictur
export const  assetapiapplycommonsubmitpictur = query => {
    return service({
        url: 'http://www.jxsks.com:8686/canteen/api/assetways/submitFiles',
        method: 'post',
		params:query
    });
};




///////asset/api/apply/change/addOrSubChangeApply
export const  assetapiapplychangeaddOrSubChangeApply = query => {
    return service({
        url: '/asset/api/apply/change/addOrSubChangeApply',
        method: 'post',
		data:query,
		params:{type:query.type}
    });
};


////////asset/api/apply/change/getAssetChangeLog
export const  assetapiapplychangegetAssetChangeLog = query => {
    return service({
        url: '/asset/api/apply/change/getAssetChangeLog',
        method: 'post',
		params:query
    });
};



////////////////////asset/api/apply/change/getAssetChangeDetail


export const  assetapiapplychangegetAssetChangeDetail = query => {
    return service({
        url: '/asset/api/apply/change/getAssetChangeDetail',
        method: 'post',
		params:query
    });
};







export const  assetapiapplytransferaddOrSubTransferApply = query => {
    return service({
        url: '/asset/api/apply/transfer/addOrSubTransferApply',
        method: 'post',
		data:query,
		params:{
			type:query.type
		}
    });
};



///////asset/api/apply/transfer/getAssetTransferDetail


export const  assetapiapplytransfergetAssetTransferDetail = query => {
    return service({
        url: '/asset/api/apply/transfer/getAssetTransferDetail',
        method: 'post',
		params:query
		
    });
};



////////asset/api/apply/purchase/getPurchaseApplyDetailAccept


export const  assetapiapplypurchasegetPurchaseApplyDetailAccept = query => {
    return service({
        url: '/asset/api/apply/purchase/getPurchaseApplyDetailAccept',
        method: 'post',
		params:query
		
    });
};


///asset/api/info/manage/getAssetList
export const  assetapiinfomanagegetAssetList = query => {
    return service({
        url: '/asset/api/info/manage/getAssetList',
        method: 'post',
		data:query,
		params:{
			userCode:query.userCode,
			type:query.type
		}
		
    });
};



/////asset/api/apply/dispose/addOrSubDisposeApply
export const  assetapiapplydisposeaddOrSubDisposeApply = query => {
    return service({
        url: '/asset/api/apply/dispose/addOrSubDisposeApply',
        method: 'post',
		data:query,
		params:{
			userCode:query.userCode,
			type:query.type
		}
		
    });
};



/////////asset/api/system/menu/getMenuTreeListAll

export const  assetapisystemmenugetMenuTreeListAll = query => {
    return service({
        url: '/asset/api/system/menu/getMenuTreeListAll',
        method: 'post',
		data:query,
		params:query
		
    });
};


////////asset/api/apply/dispose/getDisposeApplyDetail

export const  assetapiapplydisposegetDisposeApplyDetail = query => {
    return service({
        url: '/asset/api/apply/dispose/getDisposeApplyDetail',
        method: 'post',
		
		params:query
		
    });
};


////////asset/api/apply/dispose/getDisposeApplyDetail

export const  assetapisystemmenubindRoleMenu = query => {
    return service({
        url: '/asset/api/system/menu/bindRoleMenu',
        method: 'post',
		
		data:query
		
    });
};


/////asset/api/system/menu/getMenuListByRole


export const  assetapisystemmenugetMenuListByRole = query => {
    return service({
        url: '/asset/api/system/menu/getMenuListByRole',
        method: 'post',
		
		params:query
		
    });
};

export const  assetapiinfomanageimportAsset = query => {
    return service({
        url: '/asset/api/info/manage/importAsset',
        method: 'post',
		
		params:query
		
    });
};



////asset/api/info/manage/addAssetInfo

export const  assetapiinfomanageaddAssetInfo = query => {
    return service({
        url: '/asset/api/info/manage/addAssetInfo',
        method: 'post',
		
		data:query
		
    });
};

//////asset/api/info/manage/getAssetDetail

export const  assetapiinfomanagegetAssetDetail = query => {
    return service({
        url: '/asset/api/info/manage/getAssetDetail',
        method: 'post',
		params:query,
		data:query
		
    });
};